import Layout from '@/views/layout/Layout'
import AppMain from '@/views/layout/components/AppMain';

export const pagesampleRouter = 
{
    path: '/system',
    component: Layout,
    redirect: '/system/list',
    name: '系统管理',
    meta: {
        title: '系统管理',
        icon: 'page',
        roles: ['admin']
    },
    children: [{
        path: 'user',
        component: Layout,
        redirect: '/system/user',
        name: '用户管理',
        meta: { 
            title: '用户管理',
            icon: 'pagelist',
            roles: ['admin']
        },
        children: [{
                path: 'list',
                component: () => import('@/views/system/user/list'),
                name: '用户列表',
                meta: { title: '用户列表', roles: ['admin'] }
            }]
    }]
}